package com.course.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 评论表
 */
@Data
@TableName("comment")
public class Comment {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String content;

    private Long userId;

    private Long courseId;

    private int thumbsNumber = 0;

    private int responseNumber = 0;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(exist = false)
    private List<CommentThumbs> commentThumbsList;
}
